package com.test.book.mapper;

import com.test.book.model.BookInfo;
import com.test.book.model.PageRequest;
import com.test.book.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BookMapper {

    Integer insertBook(BookInfo bookInfo);

    List<BookInfo> selectByPage(PageRequest pageRequest);

    Integer selectCount();

    BookInfo queryBookById(Integer id);

    Integer updateBook(BookInfo bookInfo);

    Integer batchDeleteBook(List<Integer> ids);

}
